package cn.wolfcode.shop.cloud.mq;

public class MQConstants {
    //消息发送主题
    public static final String SECKILL_ORDER="SECKILL_ORDER";

    //创建订单操作
    public static final String SECKILL_ORDER_GROUP="SECKILL_ORDER_GROUP";//组名
    public static final String CREATE_ORDER_TAG="ORDER";//标签
    public static final String CREATE_ORDER_DEST=SECKILL_ORDER+":"+CREATE_ORDER_TAG;

    //订单成功操作
    public static final String ORDER_SUCCESS_GROUP="ORDER_SUCCESS_GROUP";
    public static final String ORDER_SUCCESS_TAG="ORDER_SUCCESS";
    public static final String ORDER_SUCCESS_DEST=SECKILL_ORDER+":"+ORDER_SUCCESS_TAG;

    //订单失败操作
    public static final String ORDER_FAIL_GROUP="ORDER_FAIL_GROUP";//消费者组名
    public static final String ORDER_FAIL_TAG="ORDER_FAIL"; //标签
    public static final String ORDER_FAIL_DEST=SECKILL_ORDER+":"+ORDER_FAIL_TAG;//目的地

    //延时订单操作
    public static final String ORDER_SUCCESS_DELAY_GROUP="ORDER_SUCCESS_DELAY_GROUP";
    public static final String ORDER_SUCCESS_DELAY_TAG="ORDER_SUCCESS_DELAY_TAG";
    public static final String ORDER_SUCCESS_DELAY_DEST=SECKILL_ORDER+":"+ORDER_SUCCESS_DELAY_TAG;

    //订单通知操作
    public static final String ORDER_FAIL_NOTIFY_GROUP="ORDER_FAIL_NOTIFY_GROUP";
    public static final String ORDER_FAIL_NOTIFY_TAG="ORDER_FAIL_NOTIFY_TAG";
    public static final String ORDER_FAIL_NOTIFY_DEST=SECKILL_ORDER+":"+ORDER_FAIL_NOTIFY_TAG;
}